package org.hadoop.writable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Partitioner;
public class LineCharCountPartitioner extends Partitioner<LineCharCountWritable, NullWritable> {
    @Override
    public int getPartition(LineCharCountWritable key, NullWritable value, int i) {
        if(key.getCount()>25){
            return 1;
        }else{
            return 0;
        }
    }
}
